<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Range')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-range" class="form-control selectpicker" name="row[range]">
                {foreach name="rangeList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div id="js-brand" style="display:none;">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('适用品牌')}:</label>
            <div class="col-xs-12 col-sm-8 js-check">
                <div class="js-show-brand-cont">
                    <a href="javascript:;" class="js-show-brand-ck">选择品牌(<span class="js-show-txt">展开</span>)</a><br/>
                    <div class="js-show-brand-list" style="display:none;">
                        <?php foreach($brandList as $val):?>
                        <span class="text-muted"><input type="checkbox" name="row[brand][]" value="{$val['brand_id']}" class="js-single"/> <label for="checkall"><small>{$val['brand_title']}</small></label></span>
                        <?php endforeach;?>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="js-cate" style="display:none;">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('适用品类')}:</label>
            <div class="col-xs-12 col-sm-8 js-check">
                <div class="js-show-cate-cont">
                    <a href="javascript:;" class="js-show-cate-ck">选择品类(<span class="js-show-txt">展开</span>)</a><br/>
                    <div class="js-show-cate-list" style="display:none;">
                        <?php foreach($cateList as $val):?>
                        <span class="text-muted"><input type="checkbox" name="row[cate][]" value="{$val['cate_id']}" class="js-single"/> <label for="checkall"><small>{$val['cate_title']}</small></label></span>
                        <?php endforeach;?>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_name" data-rule="required" class="form-control form-control" name="row[coupon_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('优惠券面额(元)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-par_value" data-rule="required" class="form-control form-control" step="1" name="row[par_value]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('商品金额满')}:</label>
        <div class="col-xs-6 col-sm-2">
            <input id="c-use_condition" data-rule="required" class="form-control form-control" step="1" name="row[use_condition]" type="number" value="0.00">
        </div>
        元可用
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expiry_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-expiry_type" class="form-control selectpicker" name="row[expiry_type]">
                {foreach name="expiryTypeList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div id="expiryType0">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Expiry')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-expiry" data-rule="required" class="form-control form-control" name="row[expiry]" type="number" value="0">
            </div>
        </div>
    </div>
    <div id="expiryType1" style="display:none;">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Expiry_start')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-expiry_start" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[expiry_start]" type="text" value="{:date('Y-m-d H:i:s')}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Expiry_end')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-expiry_end" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[expiry_end]" type="text" value="{:date('Y-m-d H:i:s')}">
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-starttime" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endtime" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Circulation')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-circulation" data-rule="required" class="form-control form-control" name="row[circulation]" type="number" value="1">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-receive_type" class="form-control selectpicker" name="row[receive_type]">
                {foreach name="receiveTypeList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div id="receive-conf" style="display: none;">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('单笔订单金额满')}</label>
            <div class="col-xs-6 col-sm-2">
                <input id="c-receive_conf" class="form-control form-control" name="row[receive_conf]" type="text">
            </div>
            元系统自动发放
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receive_num" class="form-control form-control" name="row[receive_num]" type="number" value="1">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
